/* ****************************************************************************
 * Author: 671643387
 * Date: 2015/3/18
 * ***************************************************************************/

Ext.define("sggm.view.UserBasicDataEditor", {
    extend: "Ext.Window",
    alias: "widget.userBasicDataEditor",

    title: "基础数据编辑器",

    width: 300,
    height: 240,
    modal: true,
    layout: 'fit',
    plain: true,
    items: [{
        xtype: "form",
        buttonAlign: 'center',
        frame: false,
        bodyStyle: 'padding-top:5px;',
        defaultType: "textfield",
        border: false,
        fieldDefaults: {
            labelAlign: 'right',
            labelWidth: 70,
            labelSeparator: "："
        },
        items: [{
            name: "xp",
            fieldLabel: "经验"
        }, {
            name: "level",
            fieldLabel: "等级"
        }, {
            name: "gold",
            fieldLabel: "金币"
        }, {
            name: "food",
            fieldLabel: "粮草"
        }, {
            name: "honor",
            fieldLabel: "军功"
        }, {
            name: "soul",
            fieldLabel: "武魂"
        }],
        buttons: [{
            text: "重新加载",
            action: "reloadStatus"
        } ,{
            text: "保存",
            action: "saveStatus"
        }]
    }]
});